import { IsNotEmpty, MaxLength, Max, IsUUID } from "class-validator";

export class LoginStrDto {

  @IsNotEmpty()
  @MaxLength(500)
  params: string
}

export class LoginDto {

  @IsNotEmpty()
  @MaxLength(30)
  loginName: string

  @IsNotEmpty()
  @MaxLength(100)
  password: string

  @IsNotEmpty()
  @MaxLength(4)
  authCode: string

  @IsNotEmpty()
  @IsUUID()
  uuid: string;
}

export class LogOutDto {
  @IsNotEmpty()
  @MaxLength(30)
  loginName: string
}